# import tools
# import time,uuid

# tools.download("WechatIMG2004.png?x-oss-process=image/resize,h_100,m_lfit",'download.png')

# pngkeys = tools.ppt_to_pngkeys("202009/f90e9568-fbd5-11ea-b28a-acde48001122.pptx")
#
# print(pngkeys)



# def random_key():
#     dir = time.strftime("%Y%m", time.localtime(time.time()))
#     return oss_path_join(dir,str(uuid.uuid1())+".pptx")
#
# def key_to_dir(key):
#     return key[:-5]
#
# #oss 路径只能使用/ 不能使用\ ，os.path.join在 windows 下是 \ 会出错
# def oss_path_join(*args):
#     print(args)
#     res = ''
#     for i in args:
#         res += i + "/"
#     return res[:-1]
#
# print(key_to_dir(random_key()))

from pptx import Presentation
import time

prs = Presentation('./test.pptx')
for i in prs.slides:
    print(i.notes_slide.notes_text_frame.text)
    time.sleep(5)
